#include "camera.h"
#include <SDL_opengl.h>

void Camera::SetPos(float x, float y)
{
	_x = x;
	_y = y;
}

void Camera::GetPos(float &x, float &y)
{
	x = _x;
	y = _y;
}

void Camera::ModCameraStart()
{
	glPushMatrix();
	//glRotatef(r,0.0f,0.0f,1.0f);	
	glTranslatef(_x,_y,0.0f);
}

void Camera::ModCameraStop()
{
	glPopMatrix();
}
